package com.eqxiu.ieditor.api.mall;

import eqxiu.mall.product.dto.HotWordDTO;
import eqxiu.mall.product.exception.ApiException;

import java.util.List;
import java.util.Map;

public interface IMallServiceApi {
	/**
	 *
	 * @description //TODO 设计说明
	 * @author ranger
	 * @date Jul 20, 2017
	 * @modified by xxx 修改说明
	 * @param orderType
	 * @param orderAmount
	 * @param productId
	 * @param createUser
	 * @param mallOrderId
	 * @param useFlag
	 * @return
	 */
	Map<String, Object> createCallback(String orderType, String orderAmount, final int productId,
                                       final String createUser, Integer mallOrderId, boolean useFlag, Integer source);

	/**
	 *
	 * @description //TODO 设计说明
	 * @author ranger
	 * @date Jul 20, 2017
	 * @modified by xxx 修改说明
	 * @param orderId
	 * @param creater
	 * @param orderAmount
	 * @param transactionId
	 * @param productName
	 * @param channel
	 * @param productId
	 * @return
	 * @throws ApiException
	 */
	Map<String, Object> createMallOrder(String orderId, String creater, String orderAmount, String transactionId,
                                        String productName, String channel, final int productId) throws ApiException;

	/**
	 * 
	 * @description //TODO 设计说明
	 * @author ranger
	 * @date Jul 20, 2017
	 * @modified by xxx 修改说明
	 * @param type
	 * @return
	 */
	List<HotWordDTO> getMallHotWord(Integer type);
}
